-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiling tool : Profiling tool throws NPE when appInfo is null and unchecked #640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/CollectInformation.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/CollectInformation.scala
Outdated
Show resolved
Hide resolved
@@ -390,7 +390,9 @@ class Analysis(apps: Seq[ApplicationInfo]) { | |||
val allRows = apps.flatMap { app => | |||
app.sqlIdToInfo.map { case (sqlId, sqlCase) => | |||
SQLDurationExecutorTimeProfileResult(app.index, app.appId, sqlId, sqlCase.duration, | |||
sqlCase.hasDatasetOrRDD, app.appInfo.duration, sqlCase.problematic, | |||
sqlCase.hasDatasetOrRDD, | |||
if (app.appInfo != null) app.appInfo.duration else Option(0L), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can we use option
and map
instead of if else
in arguments to make it more idiomatic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the latest version? I see "Addressed" but the code is still using if-else-then
?
Signed-off-by: Kuhu Shukla <[email protected]>
60f48c5
to
1b2cc31
Compare
Please take a look @cindyyuanjiang , @parthosa |
Added headers for 2024 🎈 |
|
1b2cc31
to
3aa9808
Compare
Signed-off-by: Kuhu Shukla <[email protected]>
3aa9808
to
2ebba77
Compare
Ok, we should be good now @cindyyuanjiang , @amahussein , apologies- my commit from yesterday ended with a bad push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kuhushukla
LGTME
Fixes #639 , needs a test , therefore draft